#include <iostream>
#include <stdlib.h>
using namespace std;

int main()
{
    int n;
    cin>>n;
    int array[n];
    for (int i = 0; i < n; i++) {
       cin>>array[i];
    }
    int length=0;
    for (int i = n-1; i >=0 ; i--) {
       for(int j=i;j>=0;j--){
          if(array[j]<=abs(array[i])){
             length=length>(i-j+1)?length:(i-j+1);
              }else{
                  break;
              }
            }
        }
    cout << length << endl;
    return 0;
}
